const Router = require('koa-router');
const router = new Router();

const readFilePromise = require('fs-readfile-promise');

router.get('/listUsers', async (ctx, next) => {
    let results = await readFilePromise("./public/data/" + "users.json", 'utf8')

    ctx.body = {
        status: 'success',
        message: JSON.stringify(results)
    }
}
)

module.exports = router;
